export function isFunction(vitrualDOM) {
    return vitrualDOM && typeof vitrualDOM.type === 'function'
}
export function isFunctionComponent(vitrualDOM) {
    const type = vitrualDOM.type
    return type && isFunction(vitrualDOM) && !(type.prototype && type.prototype.render)
}